<?php

if(!function_exists('error')){
    /**
     * @throws \app\admin\CommonException
     */
    function error($message,$url='',$code=400,$param=[]){
        throw new \app\admin\CommonException($message,$url='',$code=400,$param=[]);
    }
}

if(!function_exists('success')){
    /**
     * @throws \app\admin\CommonException
     */
    function success($message,$param=[]){

    }
}




